# text = input("请输出内容:")
# print(text)



v1 = [11,22,3,44,3]
#数组转化为元组
print(tuple(v1))
#自动去重
print(set(v1))

def func(a1):
    #字符串是不可变类型，重新分配内存
   return a1.upper()
v2 = "fjkwmqkjf"
print(func(v2)) #大写内容
print(v2) #原内容不变

def func2(a1):
    a1.append(100)
l1 = [1,2,434]
func2(l1)
print(l1) #[1, 2, 434, 100]

USER_TYPE = "blog"
def func3():
    USER_TYPE = "edu"
    print(USER_TYPE)
print(USER_TYPE) #edu
func3() #edu
print(USER_TYPE) #edu

print("=================")

def func4():
    global USER_TYPE #生命该局部作用域内变量USER_TYPE使用全局变量
    USER_TYPE = "edu"
    print(USER_TYPE)
print(USER_TYPE) #blog
func4() #edu
print(USER_TYPE) #edu

v1,v2 = [1,2]
print(v2)
print(v1)

v3,v4 = (11,22)
print(v3)

